package cn.hello

/**
  * Created by lzd on 2018/9/4.
  */
object LazyDemo {
  def init():String={
    println("init 666")
    return "world"
  }
  def main(args: Array[String]): Unit = {
    val name = init();
    println("main 666")
    println(name)

    println("============================")

    lazy val name2 = init();
    println("main 666")
    println(name2)
  }
}
